package com.ionehe.group.common.uaa.ex.rest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * Copyright (c) 2021 ionehe.com
 * Date: 2021/8/21
 * Time: 3:10 下午
 *
 * @author 2021年 <a href="mailto:a.ionehe.com">秀</a>
 */
@Controller
public class IndexController {
    @GetMapping("/platform")
    public void forward(HttpServletRequest request, HttpServletResponse response) {
        RequestDispatcher dispatcher = request.getRequestDispatcher("/platform/login");
        try {
            dispatcher.forward(request, response);
        } catch (ServletException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
